package context.config.imports;

import cn.stimd.spring.context.annotation.DeferredImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
public class AutoConfigurationImportSelector implements DeferredImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        //模拟SPI加载配置类
        return new String[]{"context.config.imports.WebMvcAutoConfiguration",
                "context.config.imports.DataSourceAutoConfiguration"};
    }
}
